package com.atguigu.product.service;

import com.atguigu.product.vo.AttrGroupRelationVO;
import com.atguigu.product.vo.AttrRespVO;
import com.atguigu.product.vo.AttrVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author show me the code
 * @email 2777148094@qq.com
 * @date 2022-08-25 09:24:23
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVO getAttrInfo(Long attrId);

    void updateAttr(AttrVO attr);

    List<AttrEntity> getRelationAttrList(Long attrGroupId);

    void deleteRelation(List<AttrGroupRelationVO> vos);

    PageUtils getNoRelationAttr(Long attrGroupId, Map<String, Object> params);

}

